package com.igeek.collateral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.igeek.collateral.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.collateral.vo.PageQueryVO;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
public interface IUserService extends IService<User> {

    Page<User> findPage(PageQueryVO vo);

    boolean add(User user, Integer[] roleIds);



    boolean updateUser(User user, Integer[] roleIds);

    List<Integer> findRoleByUserId(Integer userId);

    String uploadByQiniuyun(MultipartFile imgFile) throws IOException;

    boolean del(Integer roleId);




}
